package cn.itcast.scala
/*
* 	Date:2022.02.27
* 	Author:Dong hui
* */

object ArrayYieldTest {
	def main(args: Array[String]): Unit = {
		val arr = Array(1,2,3,4,5,6,7,8,9)
		val newArr = for(e <- arr if e % 2 == 0) yield e * 10
		println(newArr.toBuffer)
	}
}
